package com.fescoservice.model;

/**
 * TSeekerAppllyLogId entity. @author MyEclipse Persistence Tools
 */

public class SeekerAppllyLogId implements java.io.Serializable {

	// Fields

	private Long userId;
	private Long positionId;

	// Constructors

	/** default constructor */
	public SeekerAppllyLogId() {
	}

	/** full constructor */
	public SeekerAppllyLogId(Long userId, Long positionId) {
		this.userId = userId;
		this.positionId = positionId;
	}

	// Property accessors

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getPositionId() {
		return this.positionId;
	}

	public void setPositionId(Long positionId) {
		this.positionId = positionId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SeekerAppllyLogId))
			return false;
		SeekerAppllyLogId castOther = (SeekerAppllyLogId) other;

		return ((this.getUserId() == castOther.getUserId()) || (this
				.getUserId() != null
				&& castOther.getUserId() != null && this.getUserId().equals(
				castOther.getUserId())))
				&& ((this.getPositionId() == castOther.getPositionId()) || (this
						.getPositionId() != null
						&& castOther.getPositionId() != null && this
						.getPositionId().equals(castOther.getPositionId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserId() == null ? 0 : this.getUserId().hashCode());
		result = 37
				* result
				+ (getPositionId() == null ? 0 : this.getPositionId()
						.hashCode());
		return result;
	}

}